﻿<Window x:Class="BlackNBT.ClientTest.EditDouble"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        SizeToContent="WidthAndHeight"
        WindowStartupLocation="CenterOwner"
        WindowStyle="None">

    <Border BorderBrush="#5E7CFF" BorderThickness="1">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="300" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
            </Grid.RowDefinitions>

            <TextBlock x:Name="Title"
                       Grid.Row="0"
                       Grid.Column="0"
                       Grid.ColumnSpan="2"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"
                       FontSize="26"
                       FontWeight="Bold"
                       Foreground="Black"
                       Text="Create Entry" />

            <TextBlock Grid.Row="1"
                       Grid.Column="0"
                       Margin="20,0,0,0"
                       HorizontalAlignment="Left"
                       VerticalAlignment="Center"
                       Foreground="Black"
                       Text="Name :" />
            <TextBox x:Name="ItemName"
                     Grid.Row="1"
                     Grid.Column="1"
                     Margin="0,0,20,0"
                     VerticalAlignment="Center"
                     BorderBrush="#888888"
                     BorderThickness="1" />

            <TextBlock Grid.Row="2"
                       Grid.Column="0"
                       Margin="20,0,0,0"
                       HorizontalAlignment="Left"
                       VerticalAlignment="Center"
                       Foreground="Black"
                       Text="Value :" />
            <TextBox x:Name="ItemValue"
                     Grid.Row="2"
                     Grid.Column="1"
                     Margin="0,0,20,0"
                     VerticalAlignment="Center"
                     BorderBrush="#888888"
                     BorderThickness="1" />

            <StackPanel Grid.Row="3"
                        Grid.Column="0"
                        Grid.ColumnSpan="2"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Orientation="Horizontal">
                <Button x:Name="Save"
                        Width="100"
                        Height="30"
                        Click="OnSaveClick"
                        Content="Save" />
                <Button x:Name="Cancel"
                        Width="100"
                        Height="30"
                        Margin="10,0,0,0"
                        Click="OnCancelClick"
                        Content="Cancel"
                        IsCancel="True"
                        IsDefault="True" />
            </StackPanel>

        </Grid>
    </Border>
</Window>
